import axios from './http'

//新增专家
export function create(data: any) {
	return axios({
		url: '/create',
		method: 'post',
		data
	})
}
//新增专家
export function addRater(params: any) {
	return axios({
		url: '/addRater',
		method: 'get',
		params
	})
}
//专家列表
export function raterList() {
	return axios({
		url: '/raterList',
		method: 'get',

	})
}
// 专家编辑
export function edit_rater(params: any) {
	return axios({
		url: '/edit_rater',
		method: 'get',
		params
	})
}
// 专家删除
export function del_rater(params: any) {
	return axios({
		url: '/del_rater',
		method: 'get',
		params
	})
}
// 新增评分
export function score(data: any) {
	return axios({
		url: '/score',
		method: 'post',
		data
	})
}
//分数列表
export function scoreList(params: any) {
	return axios({
		url: '/scoreList',
		method: 'get',
		params
	})
}

// 导出单个汇总
export function achievement(params: any) {
	return axios({
		url: '/achievement',
		method: 'get',
		responseType: "blob",
		params
	})
}
// 导出单个汇总
export function del_fraction(params: any) {
	return axios({
		url: '/del_fraction',
		method: 'get',
		params
	})
}
// 汇总导出
export function summary(params: any) {
	return axios({
		url: '/summary',
		method: 'get',
		responseType: "blob",
		params
	})
}
// 登录
export function login(params: any) {
	return axios({
		url: '/login',
		method: 'get',
		params
	})
}
// 文件列表
export function fileList() {
	return axios({
		url: '/fileList',
		method: 'get',
	})
}
// 文件列表
export function delFile(params: any) {
	return axios({
		url: '/delFile',
		method: 'get',
		params
	})
}

// 新增音乐列表
export function add_group(params: any) {
	return axios({
		url: '/add_group',
		method: 'get',
		params
	})
}
// 音乐列表
export function groupList(params: any) {
	return axios({
		url: '/groupList',
		method: 'get',
		params
	})
}
// 删除
export function groupdel(params: any) {
	return axios({
		url: '/groupdel',
		method: 'get',
		params
	})
}
// 编辑
export function groupedit(params: any) {
	return axios({
		url: '/groupedit',
		method: 'get',
		params
	})
}

// 导出单个汇总
export function groupexcel(params: any) {
	return axios({
		url: '/groupexcel',
		method: 'get',
		responseType: "blob",
		params
	})
}
export function export_name_list(params: any) {
	return axios({
		url: '/export_name_list',
		method: 'get',
		responseType: "blob",
		params
	})
}
export function edu_list(params: any) {
	return axios({
		url: '/edu_list',
		method: 'get',
	})
}
export function del_team(params: any) {
	return axios({
		url: '/del_team',
		method: 'get',
		params
	})
}
export function all_score(params: any) {
	return axios({
		url: '/all_score',
		method: 'get',
		params
	})
}
export function match_list(params: any) {
	return axios({
		url: '/match_list',
		method: 'get',
		params
	})
}
export function linelist(params: any) {
	return axios({
		url: '/linkList',
		method: 'get',
		params
	})
}
export function add_teams(data: any) {
	return axios({
		url: '/add_teams',
		method: 'post',
		data: { data: data }
	})
}
export function save_team_fraction(data: any) {
	return axios({
		url: '/save_team_fraction',
		method: 'post',
		data
	})
}